package top.wineye.spring.bean.definition;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import top.wineye.model.User;

public class BeanAliasDemo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext beanFactory =
                new ClassPathXmlApplicationContext("META-INF/bean-definition-context.xml");

        User user = (User) beanFactory.getBean("wineye");
        System.out.println("get by alias wineye: " + user);
    }
}
